<!-- Breadcrums -->
<?php $this->load->view('helpers/breadcrums.php'); ?>
<!-- Breadcrum -->
<div class="container">
	<div id="main">
		<div class="row-fluid" id="searchbox">
			<div class="span9">
				<div class="w-box">
					<div class="w-box-header-pages">
						<h1 class="page-header"><?php echo $text_advanced_search_local_properties; ?></h1>
					</div>
					<div class="w-box-content cnt_a">
						<form method="get" action="<?php echo base_url(); ?>listing-rows.html"
							class="form-search-box">
						<input type="hidden" checked="checked" value="0" id="local" name="localorint">
						<div class="row-fluid">
						<div class="span2">
						<div class="heading_vertical"><label class="radio"> <input type="radio"
							checked="checked" value="sale" id="forsaleorforrent1"
							name="propertyfor"> <?php echo $text_property_forsale; ?> </label> 
<!--                                                    <label
							class="radio"> <input type="radio" value="rent" id="forsaleorforrent2"
							name="propertyfor"> <?php echo $text_property_forlease; ?> 
                                                    </label>-->
                                                </div>
						</div>
						<div class="span10">
						<div class="row-fluid">
						<div class="span4"><?php echo $text_listingtype; ?></div>
						<div class="span8">
							<select name="list_type" id="list_type" class="span12">
							<option selected="selected" value=""><?php echo $text_please_select; ?></option>
							<option value="resale"><?php echo $text_resale; ?></option>
							<option value="project"><?php echo $text_project_listing; ?></option>
						</select></div>
						</div>
						<div class="row-fluid">
						<div class="span4"><?php echo $text_propertytype; ?></div>
						<div class="span8">
							<select id="propertytype" name="propertytype" class="span12">
								<option value="" selected="selected"><?php echo $text_all_propertytype; ?></option>
								<?php if(count($dd_propertytype) > 0) { ?>
								<?php foreach ($dd_propertytype as $type) { ?>
								<option value="<?php echo $type->PropertyType_ID; ?>"><?php echo $type->Name; ?></option>
								<?php } ?>
								<?php } ?>
							</select>
						</div>
						</div>
						<div class="row-fluid">
						<div class="span4"><?php echo $text_city; ?></div>
						<div class="span8 city_advance_search">
						<div class="row-fluid">
						<div class="span12"><span
							class="selections search_area_selections2 span12"
							id="a_search_city_area_advanced_selections"><span><?php echo $text_select_city; ?></span></span>
						</div>
						</div>
						<div id="ddlCity" class="row-fluid search_cityareapanel selectpanel"
							style="display: none;">
						<div class="span12"><label
							for="city_<?php echo $this->config->item('market'); ?>"> <input
							type="checkbox" value
							id="city_<?php echo $this->config->item('market'); ?>"
							class="formcheck childCheckBoxForCity"
							onclick="sbRestArea('search_area_selections2','childCheckBoxForCity','<?php echo $text_cities_selected; ?>')"
							checked="checked"> <span style="cursor: default;"
							onclick="sbRestArea('search_area_selections2','childCheckBoxForCity','<?php echo $text_cities_selected; ?>')"><?php echo $text_all; ?></span>
						</label> <?php foreach ($lkup_cities as $city) { ?> <label
							for="city_<?php echo $city->City_ID; ?>" class="child_city"> <input
							type="checkbox" value="<?php echo $city->City_ID; ?>"
							id="sbChks<?php echo $city->City_ID; ?>"
							class="formcheck childCheckBoxForCity" name="cities[]"
							onclick="sbPopulateArea('search_area_selections2','childCheckBoxForCity','<?php echo $text_cities_selected; ?>')">
						<span style="cursor: default;" class="sbChks"
							onclick="sbCheckUncheck('sbChks<?php echo $city->City_ID; ?>', 'search_area_selections2','childCheckBoxForCity','<?php echo $text_cities_selected; ?>')"><?php echo $city->Name; ?></span>
						</label> <?php } ?></div>
						</div>
						</div>
						</div>
						<div class="row-fluid" id="Add_Your_Property_Location">
						<div class="span4"><?php echo $text_location; ?></div>
						<div id="location_advance_search" class="span8 location_advance_search">
						<div id="ddlLocation_Heading" class="row-fluid">
						<div class="span12"><span
							class="selections search_location_area_selections2 span12"
							id="a_search_location_area_advanced_selections"><span><?php echo $text_select_location; ?></span></span>
						</div>
						</div>
						<div id="ddlLocation"
							class="row-fluid search_locationareapanel selectpanel"
							style="display: none;"></div>
						</div>
						</div>
						<div class="row-fluid" id="Add_Your_Property_SubArea">
						<div class="span4"><?php echo $text_subarea; ?></div>
						<div id="subarea_advance_search" class="span8 subarea_advance_search">
						<div id="ddlSubArea_Heading" class="row-fluid">
						<div class="span12"><span
							class="selections search_subarea_area_selections2 span12"
							id="a_search_subarea_area_advanced_selections"><span><?php echo $text_select_subarea; ?></span></span>
						</div>
						</div>
						<div id="ddlSubArea" class="row-fluid search_subareaareapanel"></div>
						</div>
						</div>
						<div class="row-fluid">
							<div class="span4"><?php echo $text_price; ?></div>
							<div class="span8">
								<div class="row-fluid">
									<div class="span4"><input name="price_min" type="text" id="price_min"
										class="span12" placeholder="Min">
									</div>
									<div class="span4"><input name="price_max" type="text" id="price_max"
										class="span12" placeholder="Max"></div>
									<div class="span4"><select name="ddlPriceUnit" id="ddlPriceUnit"
										class="span12">
										<option selected="selected" value="IDR">IDR</option>
										<option value="USD">USD</option>
										</select>
									</div>
								</div>
							</div>
						</div>
						<div class="row-fluid">
							<div class="span4">
								<?php echo $text_size; ?>
							</div>
							<div class="span8">
								<div class="row-fluid">
									<div class="span8">
										<select name="size_min" id="size_min" class="span12">
											<option value="" selected="selected"><?php echo $text_size; ?></option>
											<?php if(count($size) > 0) { ?>
											<?php foreach ($size as $item) { ?>
											<option value="<?php echo $item->Value; ?>" <?php if(isset($size_min) && $size_min == $item->Value){echo 'selected="selected"';} ?>><?php echo $item->Sizeoption; ?></option>
											<?php } ?>
											<?php } ?>
										</select>			
									</div>
									<div class="span4">
										<select name="ddlSizeUnit" id="ddlSizeUnit" class="span12">
											<option selected="selected" value="sqm">SqM</option>
											<option value="sqft">SqFt</option>
										</select>
									</div>
								</div>		
							</div>
						</div>
						
						
						<div class="row-fluid">
							<div class="span4"><?php echo $text_bedrooms; ?></div>
							<div class="span8">
								<div class="row-fluid">
									<div class="span6"><input name="bedroom_min" type="text" id="bedroom_min"
										class="span12" placeholder="Min">
									</div>
									<div class="span6"><input name="bedroom_max" type="text" id="bedroom_max"
										class="span12" placeholder="Max">
									</div>
								</div>
							</div>
						</div>
						
						<div class="row-fluid">
							<div class="span4"><?php echo $text_bathrooms; ?></div>
							<div class="span8">
								<div class="row-fluid">
									<div class="span6"><input name="bathroom_min" type="text" id="bathroom_min"
										class="span12" placeholder="Min">
									</div>
									<div class="span6"><input name="bathroom_max" type="text" id="bathroom_max"
										class="span12" placeholder="Max">
									</div>
								</div>
							</div>
						</div>
						<div class="row-fluid">
						<div class="span4"><?php echo $text_keyword; ?></div>
						<div class="span8"><input name="keyword" type="text" id="keyword"
							placeholder="<?php echo $text_keyword_of_properties; ?>" class="span12">
						</div>
						</div>
						<div class="row-fluid">
						<div class="span12">
						<div class="pull-right"><input type="submit" value="Search"
							class="btn btn-primary btn-large" name="btnSearch" id="btnSearch"></div>
						</div>
						</div>
						</div>
						</div>
						</form>
					</div>
				</div>
			</div>
			<div class="sidebar span3"><?php $this->load->view('helpers/widgets/ad.php'); ?>
			</div>
		</div>
	</div>
</div>
